|
|
Hi,
>
> I'm attaching a POV file to this message. It isn't really an example
> of a non-smooth blob, but it is one of the more unusual blob shapes I
> have come up with. It really seems counter-intuitive to the way that
> blobs were supposed to work. I'd be curious to see what you can do
> with an exponential blob render, using my scene file.
Hmm, that's _very_ counterintuitive with standard blobs! Here's a quick
replacement with exp blobs. I just copied the values straight in, and it
seems to work fairly sensibly. I had to fake the texture with a x
gradient
though.
Scene and image below.
--John
#global_settings { assumed_gamma 1.0 }
background { color rgb 0.667 }
camera { perspective
angle 15
location <0, 0, -10>
look_at <0, 0, 0>
}
light_source { <10, 20, -30> color rgb 1 }
#declare SB_Fin = finish { ambient 0.01 diffuse 0.99 }
#declare fn_gauss = function(x,y,z,r) { - exp(-(x*x + z*z + y*y)/r) }
#declare fn_blob = function(x,y,z) { (fn_gauss(x+1, y, z, 1.9) * 0.68 +
fn_gauss(x-1, y, z, 1.9) * 0.68)
}
isosurface {
function { fn_blob(x, y, z) }
contained_by { box { -5, 5 } }
threshold -(2/3)
accuracy 0.001
max_gradient 2.0
finish { SB_Fin }
pigment { gradient x
color_map {
[0.0 color rgb <1.0, 0.85, 0.7>]
[1.0 color rgb <0.7, 0.85, 1.0>]
}
scale 3
translate -1.5*x
}
scale 0.9 // compensate for exp func.
}
Post a reply to this message
Attachments:
Download 'gb_strange_blob_exp.jpg' (9 KB)
Preview of image 'gb_strange_blob_exp.jpg'
|
|